
var modelgroupPanel=new ModelListPanel({
	id:'modelgroup-panel',
	title:'模型库列表',
	imgSrc:'images/MiniPic/file.png',
	layout:'border',
	canvasId:'modelgroupCanvas',
	items : {
		region : 'center',
		autoScroll : true,
		border : false,
		contentEl : 'modelgroupCanvas'
	}
	,
	store:new Ext.data.Store({
		proxy : new Ext.data.HttpProxy({
			url : 'showModelgroupView.action?method=showModelgroupList',
			method : 'post'
		}),
		reader : new Ext.data.JsonReader({
			root : "Modelgroup",
			totalProperty : "totalModelgroup",
			id : "id"
				
				
		}, [ {
			name : 'id'
		}, {
			name : 'groupName'
		}, {
			name : 'description'
		} ])
	}),
	displayName:'groupName',

	onClickImg:function(index){
		var record=this.store.getAt(index);
		var gname=record.get('groupName');
		
//		alert(index+"_"+record.get("id"));
		//跳转到具体的模型详细数据页面
		//authenticate(record.get('fileId'),'read',function(){
			//跳转到具体的模型详细数据页面
	Ext.getCmp('content-panel').addTab('versiongroup-panel');	
			
		showVersiongroup(gname);
		//alert("?");
	
			
		//});
	}
});


